package com.dingyx.ps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dingyx.ps.model.entity.TaskSlaverDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface TaskSlaverMapper extends BaseMapper<TaskSlaverDTO> {

    /**
     * 根据任务ID集合查询涉及任务明细是否为一个工程师
     */
    List<Integer> selectCountByTaskId(@Param("ids") List<Long> ids);

    /**
     * 根据任务ID集合查询汇总金额
     */
    BigDecimal selectSumMoneyByTaskId(@Param("ids") List<Long> ids);
}
